package com.ymatou.shop;

import android.os.Environment;


public class Constants {
	
	/** Tag used for debugging/logging */
    public static final String TAG = "ymatou";
    
    /** Enable debug logging */
    public static final boolean LOGD = true;
    
    /** Enable warn logging */
    public static final boolean LOGW = true;
    
    public static final String PACKAGE_NAME = Constants.class.getPackage().getName();
    
    public static final String PATH_ROOT = Environment.getExternalStorageDirectory() + "/ymt";
    
    public static final String FILE_PREFERENCE_ACCOUNT = "account";
    
    public static final int PAGE_SIZE = 10;
    
    public static final int TYPE_MESSAGE_BUYER_MESSAGE = 0x01;
    public static final int TYPE_MESSAGE_SELLER_MESSAGE = 0x02;
    
    public static final String EXTRA_DATA = "extra_data";
    public static final String EXTRA_ID = "extra_id";
    
    public static final String URL_BASE = "http://app.alpha.ymatou.com/api/";
    public static final String URL_LOGIN = URL_BASE + "auth/authorize";
    public static final String URL_GET_SELLER_INFO = URL_BASE + "activity/GetSellerInfo";
    public static final String URL_GET_SELLER_NEW_PRODUCT_NUM = URL_BASE + "activity/GetNewProductsNum";
    
    public static final String URL_GET_SELLER_EVENT_PRODUCT_LIST = URL_BASE + "activity/ListProducts";
    public static final String URL_GET_SELLER_EVENT_PRODUCT = URL_BASE + "/product/show";

    /** 卖家订单列表*/
    public static final String URL_GET_SELLER_ORDER_LIST = URL_BASE + "order/ListSellerOrders";
    public static final String URL_GET_PRODUCT_LIST = URL_BASE + "Product/List";
    
    /** 卖家指定商品订单留言*/
    public static final String URL_GET_SELLER_PRODUCT_LEAVE_MESSAGE_LIST = URL_BASE + "/order/ListSellerOrdersByProduct";
    
    /** 买家订单列表 */
    public static final String URL_GET_BUYER_ORDER_LIST = URL_BASE + "/order/ListBuyerOrders";
    
    public static final String URL_GET_HOME_PRODUCT_LIST = URL_BASE + "activity/list";
    /**
     * 用户信息 判断卖家or买家
     */
    public static final String URL_GET_USER_INFO = URL_BASE + "userinfo";
    
    /**
     * 买家验证邀请码
     */
    public static final String URL_GET_INVITATIONCODE = URL_BASE + "invitationCode/validate";
    /**
     * 用户验证权限
     */
    public static final String URL_GET_PERMISSION = URL_BASE + "permission/validate";
    
    /**
     * 取消授权
     */
    public static final String URL_CANCEL_PERMISSION = URL_BASE + "auth/deauthorize";    
    /**
     * 上传商品图片
     */
    public static final String URL_UPLOAD_PRODUCT_PIC = URL_BASE + "Product/UploadProductPic";
    
    /**
     * 添加商品
     */
    public static final String URL_ADD_PRODUCT = URL_BASE + "Product/AddProduct";
    /**
     * 修改库存
     */
    public static final String URL_CHANGE_STOCK = URL_BASE + "Product/ChangeStock";
    
    /**
     * 新活动
     */
    public static final String URL_CREATE_ACTIVITY = URL_BASE + "activity/CreateActivity";
    
    /**
     * 商品下架
     */
    public static final String URL_SET_OFF_PRODUCT = URL_BASE + "Product/SetOffShelf";
    
    /**
     * 重新上架
     */
    public static final String URL_SET_ON_PRODUCT = URL_BASE + "Product/SetOnShelf";
    
    /**
     * 结束活动
     */
    public static final String URL_CLOSE_ACTIVITY = URL_BASE + "Product/CloseActivity";
    
    /**
     * 删除商品
     */
    public static final String URL_DELETE_PRODUCT = URL_BASE + "Product/Delete";
    
    /**
     * 获取评论数消息数
     */
    public static final String URL_GET_NEW_COMMENT_NUM = URL_BASE + "message/GetNewCommentNum";
    
    /**
     * 获取订单数
     */
    public static final String URL_GET_NEW_ORDER_NUM = URL_BASE + "user/GetNewOrderNum";
    
    /**
     * 获取用户地址
     */
    public static final String URL_GET_USER_ADDRESS = URL_BASE + "user/GetAllReceiveAddresses";
    
    /**
     * 增加收货地址
     */
    public static final String URL_ADD_USER_ADDRESS = URL_BASE + "user/AddReceiveAddress";
    
    /**
     * 删除收货地址
     */
    public static final String URL_DELETE_USER_ADDRESS = URL_BASE + "user/DeleteReceiveAddress";
    
    /**
     * 获取用户账户信息
     */
    public static final String URL_GET_ACCOUNT_INFO = URL_BASE + "order/GetUserAccountInfo";
    
    /**
     * 获取商品页评论
     */
    public static final String URL_GET_PRODUCT_COMMENT = URL_BASE + "product/ListComments";
    
    /**
     * 发评论
     */
    public static final String URL_SEND_COMMENT = URL_BASE + "product/AddComment";
    
    /**
     * 对评论的回复
     */
    public static final String URL_SEND_COMMENT_REPLY = URL_BASE + "product/ReplyComment";
    
    /**
     * 保存订单
     */
    public static final String URL_SAVE_ORDER = URL_BASE + "order/SaveOrder";
    
    /**
     * 付款
     */
    public static final String URL_PAY_ORDER = URL_BASE + "order/PayOrder";
    
    /**
     * 可支付银行列表
     */
    public static final String URL_GET_PAY_BANKLIST = URL_BASE + "order/GetCanPayBankList";
    
    /**
     * 获取发给用户的消息评论
     */
    public static final String URL_MESSAGE_BUYER_LIST = URL_BASE + "message/ListReplyComments";
    
    /**
     * 获取用户发出的消息评论
     */
    public static final String URL_MESSAGE_SELLER_LIST = URL_BASE + "message/ListPublishComments";
    
}
